(define-module (emacs fennel-mode)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix build-system emacs)
  #:use-module (guix packages)
  #:use-module (guix git-download))

(define-public emacs-fennel-mode
  (let ((commit "74120062b77ceb8a6c782c54a5dcea9fba8135bc")
        (revision "1"))
    (package
     (name "emacs-fennel-mode")
     (version
      (git-version "0.1.0" revision commit))
     (source
      (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://gitlab.com/technomancy/fennel-mode.git")
             (commit commit)))
       (sha256
        (base32
         "100120ax1ak17gxpmf615k1y51f6drjnchqhirj6zwcqxhz4b8nh"))))
     (build-system emacs-build-system)
     (home-page "https://gitlab.com/technomancy/fennel-mode")
     (synopsis "Major-mode for editing Fennel code")
     (description
      "Font-lock, indentation, navigation, and repl support for the
Fennel programming language.  Supports M-x imenu for quick navigation
to local definitions.")
     (license license:gpl3+))))
